<div class="box-body">
    <form class="layui-form" action="{:url('/system/country/save')}" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">中文名</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="中文名"  name="name_ch" {if isset($country)}value="{$country.name_ch}"{/if}  class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">英文名</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="英文名"  name="name_en" {if isset($country)}value="{$country.name_en}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">二字代码</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="二字代码"  name="code_two" {if isset($country)}value="{$country.code_two}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">三字代码</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="三字代码"  name="code_three" {if isset($country)}value="{$country.code_three}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">数字代码</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="数字代码"  name="num_code" {if isset($country)}value="{$country.num_code}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">使用币种</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="使用币种"  name="currency_name" {if isset($country)}value="{$country.currency_name}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">币种代码</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" placeholder="币种代码"  name="currency_code" {if isset($country)}value="{$country.currency_code}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="排序"  name="sort" {if isset($country)}value="{$country.sort}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">税率百分比</label>
            <div class="layui-input-block">
                <input type="number" autocomplete="off" placeholder="币种代码"  name="tax_rate" {if isset($country)}value="{$country.tax_rate}"{/if} class="layui-input" />
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label xrequired">所属洲</label>
            <div class="layui-input-block">
                <select name="continent_en">
                    <option value="">请选择</option>
                    {foreach $continent as $t}
                    <option {if isset($country) && $country.continent_en==$t.continent_en}selected{/if} value="{$t.continent_en}">{$t.continent_ch}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        {if isset($country)}
        <input type="hidden" name="country_id" value="{$country.country_id}">
        {/if}
    </form>
</div>